System and method for identifying and mitigating cyberattacks through malicious position-independent code execution

ABSTRACT

A computing system including a processor and a memory, which includes a first memory region operating as a kernel space and a second memory region operating as a user space. Maintained within the kernel space, a first logic unit receives a notification identifying a newly created thread and extracts at least meta-information associated with the newly created thread. Maintained within the user space, a second logic unit receives at least the meta-information associated with the newly created thread and conducts analytics on at least the meta-information to attempt to classify the newly created thread. An alert is generated by the second logic unit upon classifying the newly created thread as a cyberattack associated with a malicious position independent code execution based at least on results of the analytics associated with the meta-information associated with the newly created thread.

FIELD

Embodiments of the disclosure relate to the field of cybersecurity. More specifically, one embodiment of the disclosure relates to an improved system and method for detecting cyberattacks conducted through remote injection or local reflection.

GENERAL BACKGROUND

Process injection is a method of injecting code (e.g., executable, dynamic link library “DLL”, etc.) into a running process. In many situations, process injection may be done for legitimate reasons. However, for over a decade, process injection has become a common attack vector for cyberattacks, particularly on user operated endpoint devices because process injection used to inject shellcode (i.e., code used for malicious purposes), can readily employ detection evasion techniques to camouflage its malicious code within a running process and, at a later time, gain access to certain resources. The running process itself may provide the injected, malicious code with access to certain resources (e.g., particular memory, enhanced privileges, etc.), thereby improving the chances of a successful cyberattack. For example, a malicious DLL may be stealthily injected into a running process to establish a “hidden” socket connection. Thereafter, the malicious code may perpetuate activities for financial gain or to embarrass, harass or blackmail the user such as gaining access to and exfiltrating sensitive or confidential information from a user's endpoint device, or even to perpetuate a disruptive cyberattack.

Conventional security systems are configured to examine processes operating on the endpoint device and their effects on resources to identify malicious processes. For example, the Windows® operating system (OS) is currently configured with “Event Tracing for Windows (ETW),” namely a diagnostic tool that is configured to trace and log events that are conducted by user processes produced during the execution of user-mode applications and kernel-mode drivers. In particular, ETW collects information associated with detected events (e.g., new thread creation), which is stored into a log file residing in the user space for later evaluation. However, the process injection analytics are performed in user space and malicious threads are frequently terminated soon after execution.

Accordingly, in some situations, ETW might not have access to salient meta-information that could prove useful in detecting malicious code execution. As a result, ETW has been plagued by high rates of false positives and false negatives, suggesting that a more reliable system for detecting malicious code execution is needed.

BRIEF DESCRIPTION OF THE DRAWINGS

Embodiments of the invention are illustrated by way of example and not by way of limitation in the figures of the accompanying drawings, in which like references indicate similar elements and in which:

FIG. 1A is a first illustrative exemplary architecture of a computing system operating as an endpoint device deploying a first embodiment of cyberthreat analytic logic for identifying malicious code execution.

FIG. 1B is a second illustrative exemplary architecture of the computing system operating as a cloud service deploying a second embodiment of the cyberthreat analytic logic for identifying malicious code execution.

FIG. 2 is an exemplary embodiment of a logical representation of software components of the cyberthreat analytic logic deployed within user space and kernel space of memory within the computing system of FIG. 1A or FIG. 1B.

FIG. 3 is an exemplary embodiment of a logical representation of a first logic unit operating as thread detection logic deployed within the kernel space of the memory utilized by the cyberthreat analytic logic of FIG. 1A or FIG. 1B.

FIG. 4 is an illustrative embodiment of an exemplary flowchart of the operations of the thread detection logic of FIG. 3 .

FIG. 5 is an exemplary embodiment of a logical representation of thread analytic logic deployed within the user space of the memory utilized by the cyberthreat analytic logic of FIG. 1A or FIG. 1B.

FIGS. 6A-6B are an illustrative embodiment of an exemplary flowchart of the operations performed by the cyberthreat analytic logic of FIG. 1A or FIG. 1B.

Elements in these figures are illustrated for simplicity and clarity, and thus, all elements forming the systems described below have not necessarily been included. For example, common, but well-understood, elements that are useful or necessary in a commercially feasible embodiment are often not depicted in order to facilitate a less obstructed view of these various embodiments of the disclosure.

DETAILED DESCRIPTION

To improve security of a computing system, cyberthreat analytic logic has been developed to accurately detect a cybersecurity threat (cyberthreat) involving malicious position independent code execution. Herein, “malicious, position-independent code execution” broadly pertains to (i) malicious remote (code) injection in which malicious code is associated with a thread inserted into a process currently in operation and/or (ii) malicious local reflection in which a malicious thread is created and invoked by the same process. Herein, a “process” may correspond to an executing instance associated with certain functionality supported by a software program such as a software application for example. A “thread” generally includes a subset of instructions and shares resources of the process with other threads. Whether created through remote injection or through local reflection, on, the cyberthreat analytic logic analyzed each thread to evaluate whether it furthers a cyberattack.

According to one embodiment of the disclosure, the above-identified cyberthreat analytic logic is configured to operate on a computing system. An illustrative example of a computing system includes an endpoint device or a cloud network (or service) for example, although a computing system may correspond to any system architecture that includes one or more processors and a memory. This memory, when abstracted as a virtualized storage resource, may be segmented into a kernel space and a user space. The cyberthreat analytic logic includes logic that may be implemented as computer program code stored during deployment within the kernel space and the user space.

More specifically, according to one embodiment of the disclosure, the cyberthreat analytic logic features a first logic unit and a second logic unit. The first logic unit is configured to detect and collect information associated with one or more newly created threads during execution of user process(es). The second logic unit is configured to conduct analyses on the collected information to determine whether any of these newly created thread(s) is associated with malicious position independent code execution. Herein, the creation of a thread caused by malicious position independent code execution is referred to as a “malicious code execution event.” For example, a malicious code execution event may correspond to injection of code into a process identified by a targeted handle or a linking of a DLL, which is accessed by content within a particular process. Also, for brevity sake, “malicious position-independent code execution” may be generally referred to herein as “malicious code execution.”

According to one embodiment of the disclosure, the first logic unit is maintained within kernel space of the memory and operates as a kernel driver. The second logic unit, operating as a security agent, is maintained within the user space of the memory. By implementing the first logic unit within the kernel space and the second logic unit within the user space, the cyberthreat analytic logic achieves improved accuracy and reliability (e.g., reduction in false positives and/or false negatives) through enhanced control of the operability of the computing system, as operations of the thread under inspection cannot be terminated prior to termination of the first logic unit, assisting in the collection of meta-information and code associated with newly created threads. Alternatively, it is contemplated that the first logic unit may conduct a preliminary analysis of the meta-information and/or code to determine whether to pass the meta-information and/or code to the second logic unit (e.g., pass when the meta-information has a certain likelihood of being malicious),

For this embodiment of the disclosure, the first logic unit may be configured to detect threads that are newly created during execution of a user process. Besides detecting newly created threads, the first logic unit may be further configured to disregard a certain type or certain types of newly created threads from further analysis. As an illustrative example, the first logic unit may exclude one type of thread, such as system threads (e.g., threads created in the kernel space) for example, thereby performing analytics on information associated with a reduced set (e.g., one or more) of newly created threads. The first logic unit may further gather meta-information associated with each thread of the reduced set of newly created threads as well as the code associated with each thread of the reduced set of newly created threads.

Stated differently, according to one embodiment of the disclosure, the first logic unit may be configured to (i) detect newly created threads, (ii) filter certain type(s) of threads (e.g., system threads, etc.) from these detected threads to produce the reduced set of newly created threads, and (iii) acquire meta-information associated with each thread of the reduced set of newly created threads. According to one embodiment of the disclosure, upon registration with a particular component of a Windows® Operating System (OS), such as a specific Windows® Application Programming Interface (API) for example, the first logic unit may receive a thread create notification (e.g., thread notification callback) in response to creation of a new thread. Each thread create notification may include meta-information associated with its corresponding newly created thread, where portions of this meta-information may be analyzed by both the first logic unit in conducting filtering operations and the second logic unit in determining whether the newly created thread is invoked to conduct a cyberattack based on malicious code execution.

More specifically, upon detecting one or more newly created threads, the first logic unit (kernel driver) is configured to perform one or more filtering operations to eliminate certain types of threads, resulting in a reduced set of newly created threads to be subsequently analyzed. With respect to a first filtering operation, the first logic unit may be configured to monitor for newly created threads based on the locality of its source. For example, the first logic unit may be configured to monitor for newly created threads based on different filtering levels: new threads created by another process (remote injection), new threads created by the same process (local reflection), or both of these new thread types. Thus different filtering levels may be used to concentrate or expand analytics to particular thread type(s).

“Remote injection” occurs when a bad actor uses an already running process by inserting a thread (e.g., a subset of instructions) from a particular process into the running user process. The thread may correspond to malicious code inserted into memory associated with the user process or a changed path of execution inserted into the user process. Hence, a remote injection event, being one type of malicious code execution event, may be detected by the first logic unit when a source process identifier (PID) associated with a newly created thread differs from its destination PID. Similarly, “local reflection” occurs when a process includes code that attempts to allocate memory and inject new functionality without transferring to another process. For example, reflective DLL injection operates by creating a DLL that maps itself into memory when executed, instead of relying on the Windows® loader. Herein, a local reflection event, being another type of malicious code execution event, may be detected by the first logic unit when the source PID matches its destination PID. The source PID and destination PID for a newly created thread may be provided as information within the thread create notification associated with that thread.

With respect to a second filtering operation, the first logic unit may be configured to identify whether a newly created thread was created in kernel space or in user space. In particular, the first logic unit may extract and evaluate the value of the source PID to determine whether the new thread is created in the kernel space or user space in memory. For a Windows® OS, a thread is identified as being created in the kernel space when the source PID is assigned a certain prescribed value. Therefore, the first logic unit may disregard information associated with newly created threads with source PIDs that identify the thread as created in the kernel space.

The first logic unit further acquires meta-information associated with each thread of the reduced set of newly created threads. For each thread, the meta-information may include, but is not limited or restricted to the following: (a) information identifying what permissions are assigned to a newly created thread, (b) a start address for the newly created thread, (c) a size of memory allocated to the newly created thread, or the like. Using the start address and the thread allocated memory size, as an optional capability, the first logic unit may be further configured to copy (and store) contents within the memory allocated to the particular newly created thread in order to acquire code associated with that thread (hereinafter referred to as “thread code”). The same operations can be performed for each thread of the reduced set of newly created threads. As the acquisition of the meta-information and/or thread code is performed by the first logic unit operating as a kernel driver, the fetching of such meta-information and/or thread code is ensured as, according to Windows® OS functionality, the newly created thread cannot terminate prior to termination of operability of the kernel driver.

In particular, the first logic unit may be configured to retrieve code associated with each thread of the reduced set of newly created threads (“thread code”). During malicious code execution, the thread code may correspond to shellcode, namely a collection of position independent code that an attacker has curated and compiled that may be processed without requiring the code to be loaded by a Windows®-based loader. As an illustrative example, if operating as shellcode, the thread code may be code with the intent to perpetuate malicious or criminal activities (broadly referred to as “malware”). These malicious activities may involve the use of software, one or more commands, or other data to take advantage of resources available to a user process associated with the newly created thread or even a vulnerability associated with a remote user process.

Operating in user (memory) space and determining whether a detected code execution event is malicious, the second logic unit may be configured to receive the meta-information associated with each thread belonging to the reduced set of the newly created threads along with its corresponding thread code (e.g., entire thread code or one or more portions thereof). For instance, according to one embodiment of the disclosure, the first logic unit conducts one or more analyses of the meta-information (and/or thread code) for each newly created thread, where the analyses may, at least in part, determine whether a particular level of correlation exists between the meta-information (and/or thread code) associated with each newly created thread and contents within one or more blacklists and/or whitelists. Upon determining that the correlation between the meta-information associated with each newly created thread and content within any of the one or more blacklists (e.g., identical or comparison greater than the prescribed degree of similarity) meets or exceeds the particular level of correlation, the second logic unit may classify the newly created thread is involved in a cyberattack and issue an alert identifying that a malicious code execution is being conducted on the endpoint device.

More specifically, according to one embodiment of the disclosure, the second logic unit may conduct analytics to determine whether at least a particular level of correlation (first threshold) exists between at least a portion of the meta-information and contents within a first blacklist and/or a first whitelist. For example, as the first blacklist includes meta-information associated with known malicious code execution events, the second logic unit may classify the thread represented by the meta-information is part of a cybersecurity attack when the correlation between the meta-information and contents within the first blacklist meets or exceeds the first threshold. Optionally, as the first whitelist may include meta-information associated with known, non-malicious code execution events such as injection of a DLL to change operability of an input/output (I/O) device such as a mouse or injection of a DLL into a process to monitor hooking operations. The second logic unit may classify the thread represented by the meta-information as non-malicious (benign) code when the correlation between the meta-information and contents within the first whitelist exceeds a first prescribed threshold (e.g., first threshold or a higher/lower threshold). In the event that there is no correlation between the meta-information and the contents of the first blacklist and whitelist, the thread is deemed suspicious (or indefinite), which may lead to an analysis of the thread code or further analysis by a remote source.

Similarly, the second logic unit may determine whether a specific level of correlation (second threshold) exists between a representation of the thread code and content within a second blacklist and/or a second whitelist. According to one embodiment of the disclosure, the representation of the thread code may be a hash value such as a MD5 or SHA-256 value, a checksum, or another data format having a consistent size regardless of the byte size of the thread code. Alternatively, the representation of the thread code may be one or more portions of the thread code extracted from the entirety of the thread code. As a result, the content within the second blacklist and/or the second white list may include corresponding representations of shellcode associated with known, malicious code execution and/or corresponding representations of code associated with non-malicious code execution, respectively. The selected shellcode and/or code may be determined through machine learning, experiential knowledge, artificial intelligence-based results, or the like.

Similar to the analyses of the meta-information, as the second blacklist includes known shellcode, the second logic unit may classify the thread (represented by the thread code) is part of a cyberattack when the correlation between the thread code and the known shellcode exceeds a second prescribed threshold. The second prescribed threshold may be equivalent to the first threshold or may be adjusted (higher/lower) to accommodate the user's security risk tolerance. Optionally, as the second whitelist may include meta-information associated with known, non-malicious code, the second logic unit may classify the thread represented by the thread code as non-malicious (benign) code when the correlation between the thread code and contents within the second whitelist exceeds a third prescribed threshold (e.g., second threshold or higher/lower).

With respect to the computerized method for detecting malicious code execution, a first operation is conducted by the first logic unit, such as a kernel driver being part of the cyberthreat analytic logic for example, to detect newly created threads for one or more processes executing on a computing system (e.g., endpoint device, cloud network/service, etc.). According to one embodiment of the disclosure, one or more filtering operations may be conducted on the detected, newly created threads by filtering logic deployed within the kernel driver. The filtering operations produce a reduced set of newly created threads.

The kernel driver continues analyses of the reduced set of newly created threads by collecting meta-information associated with each of the detected threads, namely characteristics such as the locality of the creation of that thread (e.g., DLL location versus a user allocated memory), access permissions, memory allocation size for the thread, starting address for memory allocated for the thread, or the like. The kernel driver may include a heuristics engine to apply heuristics (rules based on the experiential knowledge and prior analyses of known malware) to collect and detect the particular meta-information for use in determining whether the newly created thread is malicious (and associated with a cyberattack) or benign. Additionally, using a portion of the collected meta-information, the kernel driver may be configured to further collect the thread code (i.e., code associated with the newly created thread). Both the meta-information along with the thread code are provided to the second logic unit, operating as a security agent.

According to one embodiment of the disclosure, the “security agent” may be an instance of a software component, which is instrumented as part of or operating in conjunction with the Windows® OS software and configured to conduct malware detection by at least analyzing incoming information from the kernel driver. As an illustrative example, the security agent may collect and compare meta-information (e.g., one or more portions of the collected meta-information) to meta-information associated with known malicious code execution events. Additionally, the security agent may collect and compare a representation of the thread code to a plurality of representations of shellcode in order to provide an additional analytic point to detect a malicious code execution event, where this additional analysis point further reduces the presence of false positives (FPs) and false negatives (FNs). The security agent generates a “threat score,” namely a value that represents a likelihood of a thread under analysis being part of a cyberattack based on malicious (position-independent) code execution.

More specifically, the security agent receives the meta-information and/or thread code related to the “suspicious” newly created thread from the kernel driver. The security agent conducts additional analyses of the meta-information and/or thread code to determine, based on determined threat score(s) for example, whether any of this information identifies that the thread is part of a cyberattack based on malicious code execution. Herein, according to one embodiment, the malicious code execution may be determined based on a comparison of meta-information associated with the newly created thread to meta-information associated with known malicious code execution events. The malicious (position-independent) code execution may be further confirmed based on an analysis of a representation of the thread code to representations of known shellcode.

Where the newly created thread is determined to be part of a cyberattack, an alert is triggered. The alert may operate as a warning of the detection of malicious thread injection, such as issuance of a dashboard warning to a security administrator and/or issuance of the same or different type of warning (e.g., pop-up message, text message, etc.) to the endpoint device user. Moreover, the information collected during the above-identified analyses (e.g., meta-information, shellcode, etc.) may be used to determine an identity of threat actors behind the cyberattack. Threat actors may be identifiable based on specifics associated with their cyberattack efforts, such as the uncovered shellcode may have been used by a particular threat actor in another attempted cyberattack previously attributed to that threat actor.

Where the newly created thread is determined, based on the meta-information and/or thread code, to be part of a cyberattack based on malicious code execution, the second logic unit may trigger a remediation operation to occur. The type of remediation selected may be dependent on the threat score(s) representing a likelihood of maliciousness for a newly created thread.

For instance, when a threat score assigned to the thread by thread classification logic within the security agent exceeds a first threshold denoting that the thread is malicious, the alert may trigger an automated remediation, e.g., by terminating the process associated with the malicious thread (or blocking further activities by the malicious thread). However, where the threat score assigned by the thread classification logic exceeds a second threshold (less than the first threshold but still denotes the thread is malicious), the alert may cause the dashboard warning and prompt an analyst to review the results and determine whether or not to initiate a remediation operation. However, where the threat score assigned to the thread by the thread classification logic exceeds a third threshold (less than the second threshold but still denotes the thread is malicious), the alert may cause the dashboard warning and rely on remediation to be conducted by the administrator based on security protocols set by the enterprise or user associated with the endpoint device.

If the suspicious thread is determined to be benign by the security agent (e.g., based on additional information available to the agent such as signatures, other indicators-of-compromise (IOCs), etc.), further analysis of the meta-information and/or thread code associated with the thread under analysis may be discontinued. However, if the security agent continues to classify the thread as “suspicious” (e.g., the threat classification of the newly created thread cannot yet be confirmed as “malicious” or “benign”), the security agent may be configured to provide the meta-information and the thread code to a centralized system (e.g., third party security server), which is communicatively coupled directly or remotely to the computing system via a network connection. The centralized system is configured to perform an emulation operation or other in-depth analyses on the meta-information and/or the thread code in order analyze the potential effects to the computing system (and network) if the thread code had been executed.

I. Terminology

In the following description, certain terminology is used to describe aspects of the invention. In certain situations, each of the terms “logic,” “logic unit,” “component,” and “system” is representative of hardware, firmware, and/or software that is configured to perform one or more functions. As hardware, the logic (or logic unit/component/system) may include one or more processors (referred to herein as “processor”) and/or a memory. Examples of a processor may include, but are not limited or restricted to a microprocessor, one or more processor cores, a programmable gate array, a microcontroller, an application specific integrated circuit, or any virtual representation of the processor, namely software that is coded to function the same as or similar to the physical processor. Similarly, examples of a memory may include, but are not limited or restricted to any type of volatile or non-volatile memory, or any virtual representation of the memory being software that is coded to function the same as or similar to the physical memory.

Alternatively, or in combination with the hardware circuitry described above, the logic (or logic unit/component/system) may be software in the form of one or more software modules. The software modules may include an executable application, a daemon application, an application programming interface (API), a subroutine, a function, a procedure, an applet, a servlet, a routine, source code, a shared library/dynamic load library, or one or more instructions. The software module(s) may be stored in any type of a suitable non-transitory storage medium, or transitory storage medium (e.g., electrical, optical, acoustical or other form of propagated signals such as carrier waves, infrared signals, or digital signals). Examples of non-transitory storage medium may include, but are not limited or restricted to a programmable circuit; a semiconductor memory; non-persistent storage such as volatile memory (e.g., any type of random access memory “RAM”); persistent storage such as non-volatile memory (e.g., read-only memory “ROM”, power-backed RAM, flash memory, phase-change memory, etc.), a solid-state drive, hard disk drive, an optical disc drive, or a portable memory device. As firmware, the executable code may be stored in persistent storage.

A “computing system” generally refers to a physical electronic device featuring a processor, memory, and/or network connection or a virtual electronic device with this functionality. Examples of a computing system may include, but are not limited or restricted to any physical or virtual resource operating as a server, an endpoint device (e.g., a desktop or laptop computer, a wearable, a tablet, a device-installed mobile software, management console, industrial controller, info-entertainment system, etc.), a network adapter, or an intermediary communication device (e.g., router, firewall, etc.), a cloud service, or the like.

The term “meta-information” generally refers to a collection of information about (e.g., associated with) a thread for example. Examples of the meta-information may include, but are not limited or restricted to the following: (i) thread permission and/or (ii) thread execution address range.

The term “message” generally refers to signaling as information placed in a prescribed format and may be transmitted between different components. For instance, a message may be a Windows® messages or Windows® API.

The term “computerized” generally represents that any corresponding operations are conducted by hardware in combination with software and/or firmware.

In certain instances, the terms “compare,” comparing,” “comparison,” or other tenses thereof generally mean determining if a match (e.g., identical or a prescribed level of correlation) is achieved between two items where one of the items may include content pertaining to meta-information that is associated with an email message being analyzed.

The term “transmission medium” generally refers to a physical or logical communication link (or path) between two or more network devices. For instance, as a physical communication path, wired and/or wireless interconnects in the form of electrical wiring, optical fiber, cable, bus trace, or a wireless channel using infrared, radio frequency (RF), may be used.

Finally, the terms “or” and “and/or” as used herein are to be interpreted as inclusive or meaning any one or any combination. As an example, “A, B or C” or “A, B and/or C” mean “any of the following: A; B; C; A and B; A and C; B and C; A, B and C.” An exception to this definition will occur only when a combination of elements, functions, steps or acts are in some way inherently mutually exclusive.

The following description is not to be taken in a limiting sense, but is made merely for the purpose of describing the general principles of exemplary embodiments. The scope of the disclosure should be determined with reference to the claims. Reference throughout this specification to “one embodiment,” “an embodiment,” or similar language means that a particular feature, structure, or characteristic that is described in connection with the referenced embodiment is included in at least the referenced embodiment. Likewise, reference throughout this specification to “some embodiments” or similar language means that particular features, structures, or characteristics that are described in connection with the referenced embodiments are included in at least the referenced embodiments. Thus, appearances of the phrases “in one embodiment,” “in an embodiment,” “in some embodiments,” and similar language throughout this specification can, but do not necessarily, all refer to the same embodiment.

As this invention is susceptible to embodiments of many different forms, it is intended that the present disclosure is to be considered as an example of the principles of the invention and not intended to limit the invention to the specific embodiments shown and described.

II. Cyberthreat Analytic Logic Deployments

Referring to FIG. 1A, a first illustrative architecture of a computing system 100 deploying cyberthreat analytic logic 110 for identifying malicious (position-independent) code execution is shown. Operating as an endpoint device, the computing system 100 includes one or more processors 120, an interface 125 and a memory 130, which are communicatively coupled together over transmission medium 135. The cyberthreat analytic logic 110 is implemented within the memory 130 and is configured, when in operation, to detect, report and potentially mitigate cyberattacks based on malicious code execution. The cyberthreat analytic logic 110 includes a first logic unit 180 and a second logic unit 185, described below.

As shown in FIG. 1A, the memory 130 is configured to maintain software including an operating system (OS) 140 and one or more user software components 150 (e.g., program, application, plug-in, macro, or script). Herein, the operation system (OS) 140 includes a kernel 142, namely software that controls operations of the computing system 100. As referred to herein, the “kernel” 142 may include the privileged OS kernel, kernel extensions, and/or certain kernel drivers. In particular, the kernel 142 resides in a first (protected) area 132 of the memory 130 (referred to as “kernel space”) and is configured to perform critical tasks, such as running processes and handling interrupts for example, in this protected kernel space 132.

As further shown, the memory 130 further stores software 150, which reside within a second area 134 of the memory 130 (referred to as “user space”). Of the software 150, a first software program 152, when executed by the processor(s) 120, may invoke one or more user processes 160 ₁-160 _(m) (M≥1). Each of the user processes 160 ₁-160 _(m) may correspond to an executing instance of a program that performs certain functionality exhibited by the computing system 100 (e.g., input/output, file system management, etc.) in contrast to the kernel 142 that manages the individual user processes 160 ₁-160 _(m) within the user space 134 Each user process can access the portion of memory allocated to the process but cannot access the portion of memory allocated to other processes unless explicitly allowed. These user processes 160 ₁-160 _(m) may be automatically launched or manually launched by the user, and after being launched, some or all of the user processes 160 ₁-160 _(m) may operate sequentially or concurrently (i.e., at least partially overlapping in time) with each other.

Referring still to FIG. 1A, at least one of the user processes 160 ₁-160 _(m) (e.g., process 160 ₁) may include one or more threads 165 ₁-165 _(N) (N≥1), which collectively operate to provide the certain functionality offered by the process 160 ₁. Each of the threads 165 ₁-165 _(N) may share resources utilized by the process 160 ₁ such as a region of the memory 130 allocated to the process 160 ₁ for example. According to one embodiment of the disclosure, one or more of the threads 165 ₁-165 _(N) may be created during execution of the process 160 ₁ and/or may be created at another process 160 _(m) and injected to the memory region allocated for the running process 160 ₁.

Within the kernel space 132, an Application Programming Interface (API) 170 provides a mechanism to issue a thread creation notification 182 to the first logic unit 180 in response to creation of a new thread (e.g., thread 165 ₁) that occurs during execution of the process 160 ₁. The thread create notification 182 may correspond to a thread notification callback that provides the first logic unit 180 with meta-information associated with the newly created thread (e.g., thread 165 ₁) such as a PD. Additionally, other meta-information associated with the thread 165 ₁ (e.g., thread permissions, thread addressing information, allocated memory size allocated to the thread 165 ₁, etc.) may be acquired by accessing certain Windows-based data structures. Thereafter, a portion of this collection of meta-information associated with the thread 165 ₁ may be useful in determining whether the new thread 165 ₁ was created in either the kernel space 132 or the user space 134 of the memory 130 and whether the thread 165 ₁ is part of a malicious code execution cyberattack.

A second logic unit 185, also referred to as a “security agent,” is installed within the user space 134. The second logic unit 185 may be implemented as an instance of a software component that is instrumented for communications with the first logic unit 180 (e.g., kernel driver) and for conducting malware detection, notably detection of a malicious code execution event. For such detection, the second logic unit 185 may collect and determine whether a suitable level of correlation exists between the meta-information associated with the thread 165 ₁ and meta-information associated with known malicious code execution events (i.e., these events are stored in memory and may be accessed as a shared resource). If this level of correlation is reached or exceeded, the thread 165 ₁ is associated with a cyberattack involving malicious code execution. A similar analysis of the code associated with the thread 165 ₁ may be accessed based on the thread create notification 182 to provide additional analytics to confirm a malicious process execution event, where these additional analytics may further reduce an occurrence of a false positive (FP) or a false negative (FN).

Referring now to FIG. 1B, a second illustrative architecture of the computing system 100 deploying the cyberthreat analytic logic 110 for identifying malicious code execution is shown. For this embodiment, the computing system 100 is deployed as a cloud network 100 such as a private cloud network or a public cloud network for example. The cloud network 100 includes a cloud service 190 featuring a second embodiment of the cyberthreat analytic logic 110 used for detection (and potential remediation) of malicious code execution events.

Herein, the cyberthreat analytic logic 110 features the first logic unit 180 and the second logic unit 185, which are deployed as software components maintained with cloud storage 192 (e.g., S3 storage where the cloud service 190 is offered by a public cloud network such as Amazon Web Services “AWS,” etc.). The first logic unit 180 is deployed within a first region 193 of the cloud storage 192, and thus, afforded full or substantial access permissions to memory available in the cloud storage 192 (corresponding to the kernel space 132). The second logic unit 185, deployed with a second region 194 of the cloud storage 192, is afforded lesser access permissions than the first logic unit 180 (corresponding to the user space 134). According to this embodiment of the disclosure, the processor(s) 120 of the cloud network 100 may corresponding to a virtual processor 196 such as one or more compute engines (CE) 198 provided as part of AWS.

III. Cyberthreat Analytic Logic Operability

Referring now to FIG. 2 , an exemplary embodiment of a logical representation of software components of the cyberthreat analytic logic 110 is shown, where the software components reside in the kernel space 132 and the user space 134 of the memory 130 implemented within the computing system 100, as shown in FIG. 1A or FIG. 1B. Herein, the cyberthreat analytic logic 110 features the first logic unit 180 operating as a software driver maintained within the kernel space 132 of the memory 130 (kernel driver) and second logic unit 185 operating as a security agent maintained within the user space 134 of the memory 130. The placement of the first logic unit 180 within the kernel space 132 results in improved accuracy and reliability in analytics by controlling execution of the newly created thread to ensure that its corresponding meta-information and/or code is retrieved for use in analyzing whether the thread is associated with malicious code execution, such as malicious remote (code) injection or malicious local reflection. Stated differently, such improved accuracy and reliability is achieved, in part, because execution of the detected, newly created thread 165 ₁ (and its corresponding process 160 ₁) can be effectively suspended (e.g., paused) to allow the first logic unit 180 to extract meta-information 220 and code 230 associated with the thread 165 ₁ as, based on the operability of the Windows® OS, the newly created thread 165 ₁ cannot be terminated before termination of operability of the first logic unit 180 (acting as a kernel driver). Analyses of the meta-information 220 and/or code 230, which may constitute shellcode, may assist in the reduction (in number) of false positives (FPs) and false negatives (FNs).

More specifically, as illustrated in FIG. 2 , the first logic unit 180 may be configured to register with the Windows® API 170 to receive the thread create notification 182, namely a thread notification callback message that notifies the first logic unit 180 (e.g., Windows® kernel driver) that a new thread has been created to run in a portion of memory allocated to the process 160 ₁ while the process 160 ₁ is being executed. According to this embodiment of the disclosure, the thread create notification 182 may include information 200 associated with the newly created thread 165 ₁ such as, for example, a source process identifier 202 (“source PID”) that identifies the source of the newly created thread 165 ₁ and a destination PID 204 that identifies the intended destination of the newly created thread 165 ₁. The first logic unit 180 is configured to use the source PID 202 and the destination PID 204 for filtering (discarding) received information representative of a subset of the detected, newly created threads 165 ₁-165 _(N) that are unlikely associated with malicious code execution.

According to one embodiment of the disclosure, the newly created thread 165 ₁ may be loaded into memory associated with (e.g., allocated to) the process 160 ₁ through remote (code) injection or local reflection. In particular, the first logic unit 180 may be configured to detect the newly created thread 165 ₁ is inserted into memory associated with (e.g., allocated to) the process 160 ₁ through remote injection when the source PID 202 associated with the newly created thread 165 ₁ differs from its destination PID 204. Similarly, the first logic unit 180 may be configured to detect the newly created thread 165 ₁ is created through local reflection when the source PID 202 associated with the newly created thread 165 ₁ is the same as its destination PID 204.

As described above, the source PID 202 and the destination PID 204 may be provided as part of the information 200 within the thread create notification 182. From the source PID 202, the first logic unit 180 can further identify whether the newly created thread is a kernel-based thread (i.e., created in the kernel space 132) or a userland-based thread (i.e., a thread created in the user space 134). In particular, the first logic unit 180 is configured to detect whether the newly created thread 165 ₁ constitutes a kernel-based thread or a userland-based thread when the source PID 202 is assigned a prescribed value.

Stated differently, upon detecting one or more newly created threads 165 ₁-165 _(N), the first logic unit 180 (kernel driver) may be configured to perform one or more filtering operations to potentially discard certain types of threads, thereby generating a reduced set of threads 165 ₁-165 _(j) (N≥J≥1) for subsequent analysis. With respect to a first filtering operation, the first logic unit 180 may be configured to concentrate monitoring of the newly created threads 165 ₁-165 _(N) based on the locality of its source. As a result, the first logic unit 180 may be configured to monitor for (i) new threads created through remote (code) injection, (ii) new threads created through local reflection, or (iii) new thread created through remote (code) injection or local reflection.

Upon receiving the information 200 within the thread create notification 182, the first logic unit 180 may be further configured to perform a second filtering operation that disregards thread create notifications associated with newly created system threads (e.g., threads generated in the kernel space 132). The thread create notification 182 may identify whether a newly created thread is a system thread when the source PID 204 has a prescribed value (e.g., PID 4 is the Process ID for the Windows® system process). Herein, the first filtering operation and the second filtering operation may be performed sequentially or concurrently.

Additionally, the first logic unit 180 may be configured to gather meta-information 220 associated with each thread of the reduced set of newly created threads 210. The meta-information 220 may include, but is not limited or restricted to (a) information identifying what permissions 222 (read/write/execute) are assigned to a specific newly created thread, (b) a start address 224 for that specific newly created thread, (c) a size of memory 226 allocated to the specific newly created thread, or the like.

In summary, according to one embodiment of the disclosure, the first logic unit 180 may be configured to (i) detect newly created threads, optionally through a Windows-based API 170, (ii) filter certain type(s) of threads (e.g., system threads, threads created through remote injection, threads created through local reflection, etc.) from these detected threads to produce the reduced set of newly created threads 210, and (iii) acquire meta-information 220 associated with each thread of the reduced set of newly created threads 210.

Additionally, as an optional capability, the first logic unit 180 may be configured to obtain code 230 associated with each thread of the reduced set of newly created threads 210 (hereinafter referred to as “thread code” 230). According to one embodiment, the first logic unit 180 may obtain the thread code 230 by performing a memory copy of a region of memory defined by the start address 224 and the thread allocated memory size 226 being part of the meta-information 220. This acquisition of the meta-information 220 and/or thread code 230 is assured based on the deployment of the first logic unit 180 as a kernel driver within the kernel space 132 as described above.

In particular, where the first logic unit 180 is configured to retrieve the thread code 230 and malicious code execution is being conducted, the thread code 230 would correspond to shellcode. Hence, analytics of the shellcode 230 may be conducted to verify whether a newly created thread is or is not associated with a cyberattack through remote injection or local reflection.

Operating in user space 134 and responsible for determining whether the thread 165 ₁, as represented by the meta-information 220 and/or the thread code 230 is associated with a cyberattack, the second logic unit (security agent) 185 may be configured to receive the meta-information 220 and optionally the thread code 230. Herein, the second logic unit 185 may be configured to receive the meta-information 220 and optionally the thread code 230 for each filtered, newly created thread successively. Alternatively, the first logic unit 180 may temporarily store the meta-information and/or thread code for multiple detected threads and upload to the second logic unit 185 collectively (e.g., upload information associated with multiple detections at scheduled times or at times when processor utilization is less than a prescribed threshold (e.g., less than 50% utilization, less than 25% utilization, etc.). Herein, description of meta-information and/or thread code uploading for a single thread is discussed, albeit the information may be accompany meta-information and/or thread code for other newly created (and filtered) threads.

According to one embodiment of the disclosure, the security agent 185 conducts one or more analyses of the meta-information 220, where the analyses may include a determination whether a particular level of correlation (e.g., from identical to a selected degree of similarity) exists between one or more portions of the meta-information 220 and known malicious meta-information 242 within one or more blacklists 240. Upon determining that the correlation between the portion(s) of the meta-information 220 and known malicious meta-information 242 within any of the blacklists 240 meets or exceeds the particular level of correlation, the security agent 185 may issue an alert 260 identifying that a malicious code execution event, representative of a cyberattack based on malicious code execution, is being conducted on the computing system 100.

Additionally, as an optional analytic, the security agent 185 may conduct one or more analyses on the thread code 230. The analyses may include (i) performing a transformation of the thread code 230 (e.g., conducting a one-way hash operation) to generate a representation 270 of the thread code 230 (or a portion of the thread code 230) and (ii) determining whether a certain level of correction exists between the representation 270 of the thread code 230 (or a portion of the thread code 230) and representations 280 of known shellcode 244 (or portions of the known shellcode 244). The representations of known shellcode 244 (or portions thereof) may be stored within the one or more blacklists 240. This comparison may be conducted to confirm that the newly created thread associated with the thread code 230 is associated with a cyberattack based on malicious code execution. Herein, according to one embodiment of the disclosure, the representation 270 of the thread code 230 (or a portion of the thread code 230) and representations 280 of the known shellcode (or portions of the known shellcode 244) may be a resultant hash value such as a MD5 or SHA-256 value, a checksum, or another data format having, e.g., a consistent size regardless of the byte size of the thread code 230.

In summary, the security agent 185 conducts analytics to determine whether a suitable level of correlation exists between at least a portion of the collected meta-information 220 and contents within a first blacklist 2401 and/or a first whitelist 2501. For example, the first blacklist 2401 may include the known malicious meta-information 242. The first whitelist 2501 may include meta-information 243 associated with known, non-malicious code execution events. Similarly, the security agent 185 may conduct analytics to determine whether a suitable level of correlation exists between the representation 270 of the thread code 230 or a portion thereof (e.g., SHA-256 hash value, MD5 hash value, checksum, etc.) and content within a second blacklist 2402 and/or a second whitelist 2502. The second blacklist 2402 may include representations 282 (one-way hash values) of shellcode (or portions of shellcode) while the second whitelist 2502 may include representations 282 (e.g., one-way hash values) of selected code associated with non-malicious code execution events. The code being used to formulate the second whitelist 2502 may be determined through machine learning, experiential knowledge, artificial intelligence-based results, or the like.

. However, if the security agent 185 is configured to classify the thread as “suspicious” or indefinite (e.g., the threat classification of the newly created thread cannot yet be confirmed as “malicious” or “benign”), the security agent 185 may be configured to provide the meta-information 220 and the thread code 230 to a centralized system 290 (e.g., third party security server), which is communicatively coupled directly or remotely to the computing system via a network connection. The centralized system 290 is configured to perform an emulation operation or other in-depth analyses on the meta-information 220 (e.g., virtual machine (VM-based) execution or machine-learning analysis) and/or the thread code 230 in order analyze the potential effects to the computing system (or network) caused by execution of the newly created thread. Additionally, the centralized system 290 may perform enrichment operations such as determining additional context with respect to the newly created thread such as whether any malicious domains are present in the thread code 230 and/or determining whether any intelligence in the form of context information can be obtained from the results of static and/or dynamic analyses.

IV. Thread Detection Logic—Architecture and Operability

Referring to FIG. 3 , an exemplary embodiment of a logical representation of the first logic unit 180 operating as part of the cyberthreat analytic logic 110 and deployed within the kernel space 132 of the memory 130 of FIG. 1A (or first region of cloud storage 192 of FIG. 1B) is shown. Operating as a kernel driver, the first logic unit 180 includes thread detection logic 300, which includes monitoring logic 310, filtering logic 320, meta-information collection logic 330, and thread code extraction logic 340. Each of the filtering logic 320, the meta-information collection logic 330 and the thread code extraction logic 340 may operate separately or concurrently with other logic.

Herein, the monitoring logic 310 may be configured to establish communications with kernel-level tracing component 350, which is assessable via the Windows® Thread Creation API 170. The kernel-level tracing component 350 is configured to provide the thread create notification 182 to notify the monitoring logic 310 of a new thread being created during operations of a monitored process. Herein, the monitoring logic 310 may be notified in accordance with a “push” notification scheme in which the kernel-level tracing component 350 sends the thread create notification 182 in response to creation of a new thread by a monitored process. Alternatively, the monitor logic 310 may be notified in accordance with a “pull” notification scheme in which the monitoring logic 310 issues a query message 312 to the kernel-level tracing component 350, which returns one or more thread create notifications 182 corresponding to new threads that are being created and operating as part of the monitored process.

The filtering logic 320 is configured to perform one or more filtering operations to disregard newly created system threads, namely kernel-based threads for example, to maintain information 215 associated with the reduced set of newly created threads within a data store 360. In particular, each of the thread notification callbacks may include information to identify whether a newly created thread associated with that thread notification callback is a kernel-based thread. Given that malicious code execution tends to be perpetrated on userland-based threads, newly created system threads can be discarded, resulting in a lesser number of threads to be evaluated.

The meta-information collection logic 330 is configured to collect the meta-information 220 associated with each of the reduced set of newly created threads 210. For each newly created thread from the reduced set of newly created threads 210, the meta-information 220 may be extracted from information within its corresponding thread create notification 182 and/or information gathered from accessing certain Windows-based data structures (where acquisition is ensured based on deployment and operability of the first logic unit 180 as a kernel driver within the kernel space 132 of the memory 130). As described above, the meta-information 220 may include, but is not limited or restricted to at least (a) permissions 222 assigned to a particular newly created thread, (b) the start address 224, and/or (c) the allocated memory size 226 for the newly created thread.

Herein, the thread code extraction logic 340 is in communication with the meta-information collection logic 330 to receive the start address 224 of the newly created thread and the thread allocated memory size 226, being part of the meta-information 220 obtained by the meta-information collection logic 330, for each newly created thread. Based on this information, the thread code extraction logic 340 conducts a memory copy of the contents within a segment of memory defined by the start address 224 and the thread allocated memory size 226 to acquire the thread code 230. The controller 370 performs (drives) operability of the first logic unit 180.

Referring now to FIG. 4 , an illustrative embodiment of an exemplary flowchart of the operations of the thread detection logic 300, implemented as part of the first logic unit 180 of FIG. 3 , is shown. Herein, the thread detection logic continues to monitor for thread create notifications that signifies creation of a new thread during execution of a process (operations 400). During receipt of the thread create notifications, the thread detection logic conducts a filtering operation to concentrate on newly created threads with a greater likelihood of being associated with a cyberattack involving malicious code execution (operation 410). An example of the filtering operations includes determining whether the thread notification callback corresponds to a newly created system thread (operation 415). If so, the newly created thread may be discarded (operation 420). Based on the filtering operations, a reduced set of newly created threads are selected for analysis (operation 425).

For each of the newly created threads, meta-information associated with the newly created threads is collected (operation 430). The particular meta-information to be collected may be pre-selected (e.g., manufacturer set), configurable (e.g., selected) by a security administrator, or a combination where certain meta-information that is considered essential for malicious code execution analytics (e.g., starting address, thread memory allocation size, etc.) is pre-selected while other meta-information may be retrieved as selected by the security administrator (or user). Also, provided retrieval of the thread code is desired, using a portion of the collected meta-information, the thread code associated with the newly created thread may be recovered (operations 440 and 445). Optionally, as shown in FIG. 4 , a transformation of the thread code may be conducted to produce a representation of the thread code (e.g., generate a hash value constituting a representation of the thread code).

Therefore, the meta-information and optionally the thread code is provided to the security agent residing in the user space (operation 460). The agent is configured to conduct analytics on the meta-information and/or thread code to determine whether the newly created thread is associated with a malicious code execution cyberattack.

V. Security Agent—Architecture and Operability

Referring to FIG. 5 , an exemplary embodiment of a logical representation of the second logic unit 185 of FIG. 1A or FIG. 1B is shown. Operating as a security agent, for this embodiment, the second logic unit 185 includes thread analytic logic 500, thread classification logic 520 and reporting logic 530. The thread analytic logic 500 is configured to receive the meta-information 220 and/or the thread code 230 related to a suspicious thread from the first logic unit (kernel driver) 180. The thread analytic logic 500 conducts analyses of the meta-information 220 and/or the thread code 230 to determine whether the newly created thread is associated with a cyberattack based on malicious code execution.

More specifically, the thread analytic logic 500 may include correlation logic 505, which is configured to conduct one or more analyses associated with the meta-information 220 to determine whether a correlation exists between a portion of the meta-information 220 and contents maintained within the blacklists 240, which include a first set (one or more) of blacklists 540 and/or a first set of whitelists 550. For example, the thread analytic logic 500 is configured to (i) access the first set of blacklists 540, which includes meta-information 545 associated with known malicious code execution events, and (ii) conduct one or more analyses to determine a level of correlation between the meta-information 220 and the meta-information 545 maintained within the first set of blacklist 540. This level of correlation, referred to as a first threat score 560 (e.g., ranging from 0→100), may be provided to the thread classification logic 520. Albeit, in lieu of determining a level of correlation based on scoring, it is contemplated that the level of correlation may be determined based on a degree of compliance and/or non-compliance with a set of rules that may be formulated to identify meta-information associated with known malicious code execution events.

Similarly, whitelists 250 may be utilized. More specifically, the thread analytic logic 500 may be configured to (i) access the first set of whitelist 550, which includes meta-information 555 associated with known, non-malicious code execution events, and (ii) conduct one or more analyses to determine a level of correlation between the meta-information 220 and the meta-information 555 maintained within the first set of whitelists 550. This level of correlation, referred to as a second threat score 561, which may be calibrated differently than the first threat score 560 (e.g., ranging from 100→0), may be provided to the classification logic 520. As stated above, in lieu of determining a level of correlation based on scoring, it is contemplated that the level of correlation may be determined based on a degree of compliance and/or non-compliance with another set of rules that may be formulated to identify meta-information associated with known non-malicious code execution events.

Additionally, the thread analytic logic 500 may further conduct one or more analyses pertaining to the thread code 230, which assists in determining whether the newly created thread is associated with a cyberattack based on malicious (position-independent) code execution. Herein, the thread analytic logic 500 includes transformation logic 510 that is configured to receive the thread code 230 and conduct one or more operations on the thread code 230 to generate a representation 570 of the thread code 230. Herein, the representation 570 of the thread code 230 may correspond to a hash value generated from the thread code 230 or a portion of the thread code 230 such as a SHA-256 hash value or an MD5 hash value. As an alternative, the representation 570 of the thread code 230 may correspond to an extracted portion of the thread code 230 or a checksum of the thread code 230. For this embodiment, the extracted portion of the thread code 230 may be selected based on machine learning, experiential knowledge, artificial intelligence-based results, or the like.

Thereafter, the thread analytic logic 500 conducts one or more analyses associated with the representation 570 to determine a level of correlation between the representation 570 and contents maintained within a second set of blacklist 580 and/or a second set of whitelist 560. In particular, the thread analytic logic 500 is configured to (i) access the second set of blacklists 580, which includes representation 585 of shellcode pertaining to malicious code execution, and (ii) conduct one or more analyses to determine a level of correlation between the representation 570 and representations 585 maintained within the second set of blacklists 580. This level of correlation, such a third threat score 562 (e.g., ranging from 0→100) or a degree of compliance and/or non-compliance with a chosen rule set for example, may be provided to the classification logic 520.

Also, the thread analytic logic 500 is configured to (i) access the second set of whitelists 590, which includes representations 595 associated with definitive, non-malicious thread code, and (ii) conduct one or more analyses to determine a level of correlation between the representation 570 and representations 595 maintained within the second set of whitelists 590. This level of correlation, such as a fourth threat score 563, which may be calibrated differently than the third threat score 562 (e.g., ranging from 100→0) or measured based on compliance and/or non-compliance with another rule set, may be provided to the classification logic 520.

As further shown in FIG. 5 , the classification logic 520 receives analytic results (threat scores 560-563) from the thread analytic logic 500 and generates a final threat score based on these analytic results. According to one embodiment, the final threat score may be an aggregation of any combination of threat scores (e.g., threat scores 560 and 562) determined separately in connection with determined levels of correlation between (i) the meta-information 220 with meta-information associated with threads associated with known malicious code execution events and/or known non-malicious code execution events and//or (ii) the representation 570 of the thread code 230 and representations associated with shellcode and/or definitive, non-malicious thread code. Alternatively, the final threat score may be a weighted aggregation or an average between the threat scores 560-563, or a maximum threat score of these two threat scores. The classification logic 520 determines whether the newly created thread is malicious or non-malicious based on the final threat score.

Herein, where the newly created thread is deemed malicious based on the final threat score determined from the meta-information 220 and/or the thread code 230, the classification logic 520 may provide information 599 to the reporting logic 530 that identifies an assigned classification for the thread under analysis. For instance, when the final threat score determined the classification logic 520 exceeds a first threshold that denotes the newly created thread is malicious, the reporting logic 530 may receive information that causes the reporting logic 530 to issue the alert 260 that triggers an automated remediation of the newly created thread by terminating the process associated with the malicious thread (or blocking further activities by the malicious thread). However, where the final threat score assigned by the classification logic 520 exceeds a second threshold (less than the first threshold but still that denotes the thread is malicious), the reporting logic 530 may issue an alert that causes a dashboard warning and prompts an analyst to immediately review the results and determine whether to conduct a remediation operation on the malicious thread. However, where the final threat score assigned by the classification logic 520 exceeds a third threshold (less than the second threshold but still that denotes the thread is malicious), reporting logic 530 may issue an alert that causes the dashboard warning on the endpoint device (and/or another endpoint device), where remediation is determined by an administrator based on security protocols to be followed by the user of the endpoint device.

VI. Cyberthreat Analytic Logic—Flow of Operation

Referring now to FIGS. 6A-6B, an illustrative embodiment of an exemplary flowchart of the operations performed by the cyberthreat analytic logic 110 of FIG. 1A or FIG. 1B is shown. Herein, a first series of operations is conducted by the first logic unit, such as a kernel driver being part of the cyberthreat analytic logic for example. The creation of new threads for one or more processes executing on a computing system may be monitored (operation 600). As the newly created threads are detected, one or more filtering operations may be conducted on the detected, newly created threads (operation 605). The filtering operations are performed to recover a reduced set of newly created threads (operation 610). The reduced set of newly created threads excludes system threads from subsequent analysis as to whether the newly created threads are associated with a cyberattack based on malicious code execution.

For each (filtered) thread of the reduced set of newly created threads, meta-information associated with each of these detected threads is collected (operation 615). The meta-information may include thread characteristics such as the locality of the creation of that thread (e.g., DLL location versus a user allocated memory), access permissions, thread memory allocation size for the thread, starting address for memory allocated for the thread, or the like. Additionally, using a portion of the collected meta-information, the code associated with the newly created thread (e.g., thread code) may be obtained (operation 620). The meta-information and/or the thread code is provided to the second logic unit that conducts non-behavioral analyses of the meta-information (operation 625). The non-behavioral analyses corresponds to analyses that can be performed without execution of the thread and monitoring behaviors of the thread or process associated with the thread.

According to one embodiment of the disclosure, a second series of operations is conducted by the second logic unit, such as a security agent being part of the cyberthreat analytic logic for example. Herein, for this embodiment of the disclosure, the second series of operations includes the non-behavioral analyses, where the second logic unit is determining the level of correlation between the received meta-information and meta-information associated with known malicious code execution events (operation 630). Additionally, or as an optional analytic, the level of correlation between a representation of the received thread code and a plurality of representations of shellcode associated with known malicious code execution events may be determined (operation 635).

Thereafter, based on the levels (or level) of correlation determined, represented by the threat scores (or threat score) according to one embodiment of the disclosure, a determination is made whether the newly created thread is associated with a cyberattack based on malicious code execution (operation 640). Depending on the levels of correlation (threat scores) determined, the newly created thread may be classified as “malicious,” “benign,” or “suspicious,” which may prompt additional analytics (e.g., emulation, behavioral analysis, etc.) remotely from the computing system (operations 645-655). Where the newly created thread is determined to be associated with a cyberattack based on malicious code execution (e.g., thread deemed malicious), an alert is generated and, optionally, a remediation scheme to initiate (operations 660-665). The type and/or user involvement in the selection of a particular remediation scheme (e.g., automated, administrator-based, etc.) may be based, at least in part, on the values of the threat scores. For instance, where the threat score exceeds a threshold that definitively classifies the thread as part of a cyberattack, the remediation scheme is automated without any administrator participation. As the threat score diminishes, the administrator (for the endpoint or cloud service) may have greater input as to the type and/or degree of remediation (e.g., blocking, quarantining, continued process with heightened controls as to communications over a public network (e.g., reduced to local area network, reduced to only certain approved web or email servers, etc.).

In the foregoing description, the invention is described with reference to specific exemplary embodiments thereof. However, it will be evident that various modifications and changes may be made thereto without departing from the broader spirit and scope of the invention as set forth in the appended claims. 

What is claimed is:
 1. A system, comprising: one or more processors; and a memory communicatively coupled to the one or more processors, the memory including a first memory region operating as a kernel space and a second memory region operating as a user space, the memory comprises a first logic unit maintained within the kernel space, the first logic unit to (i) receive a thread creation notification via an Application Programming Interface identifying a newly created thread, (ii) determine a thread type associated with the newly created thread to determine whether the newly created thread is a filtered thread type of one or more filtered thread types, and (iii) extract, within the kernel space, at least meta-information associated with the newly created thread included as part of the threat creation notification, provided the newly created thread is a thread type other than the one or more filtered thread types, and a second logic unit maintained within the user space, the second logic unit to receive at least the meta-information associated with the newly created thread and conduct analytics on at least the meta-information to attempt to classify the newly created thread, wherein an alert is generated by the second logic unit upon classifying the newly created thread as a cyberattack associated with a malicious position independent code execution based at least on results of the analytics associated with the meta-information associated with the newly created thread.
 2. The system of claim 1, wherein the malicious position independent code execution corresponding to either (i) a malicious remote injection in which malicious code associated with the newly created thread is inserted into a process that includes the newly created thread or (ii) a malicious local reflection in which a malicious thread is created and invoked by the process that includes the newly created thread.
 3. The system of claim 1, wherein the filtered thread type of the one or more filtered thread types includes a system thread being a thread generated in the kernel space and the first logic unit is configured to detect newly created threads and filter threads being any of the one or more filtered thread types to produce a reduced set of newly created threads including the newly created thread.
 4. The system of claim 1, wherein the second logic unit to conduct the analytics on the meta-information associated with the newly created thread by determining whether at least a particular level of correlation exists between the meta-information and meta-information associated with known malicious code execution events.
 5. The system of claim 1, wherein the one or more filtered threads includes one or more threads created in the kernel space, one or more threads created through remote injection, or one or more threads created through local reflection.
 6. The system of claim 1, wherein the first logic unit further extracting thread code associated with the newly created thread and the second logic unit to conduct the analytics on the meta-information associated with the newly created thread by determining whether at least a first level of correlation exists between the meta-information and meta-information associated with known malicious code execution events or a second level of correlation exists between a representation of the thread code and a representation of shellcode.
 7. The system of claim 6, wherein the representation of the thread code includes at least a hash value of at least a portion of the thread code and the representation of the shellcode includes at least a hash value of at least a portion of the shellcode.
 8. The system of claim 7, wherein the second logic unit to provide at least the meta-information associated with the newly created thread and the thread code associated with the newly created thread to a centralized system that performs an emulation operation or other in-depth analyses on at least one of the meta-information associated with the newly created thread or the thread code associated with the newly created thread in order to analyze potential effects caused by execution of the newly created thread by the computing system.
 9. The system of claim 1, wherein the system is operating as a cloud service with the one or more processors corresponding to one or more virtual processors.
 10. A non-transitory storage medium including code including a first logic unit to operate in a kernel space of a memory and a second logic unit configured to operate in a user space of the memory that, upon execution by one or more processors, performs operations comprising: receiving, by the first logic unit via an Application Programming Interface, a notification identifying a newly created thread; determining a thread type associated with the newly created thread to determine whether the newly created thread is a predetermined thread type; extracting, by the first logic unit operating within the kernel space, at least meta-information associated with the newly created thread included as part of the notification when the newly created thread is a thread type other than the predetermined thread type; receiving, by the second logic unit, at least the meta-information associated with the newly created thread; conducting, by the second logic unit, analytics on at least the meta-information to attempt to classify the newly created thread; and issuing an alert, as generated by the second logic unit, upon classifying the newly created thread as a cyberattack associated with a malicious position independent code execution based at least on results of the analytics associated with the meta-information associated with the newly created thread.
 11. The non-transitory storage medium of claim 10, wherein the malicious position independent code execution corresponding to either (i) a malicious remote injection in which malicious code associated with the newly created thread is inserted into a process that includes the newly created thread or (ii) a malicious local reflection in which a malicious thread is created and invoked by the process.
 12. The transitory storage medium of claim 10, wherein the determining of the thread type associated with the newly created thread comprises determining whether the newly created thread is a thread created in the kernel space, a thread created through remote injection, or a thread created through local reflection.
 13. The transitory storage medium of claim 10, wherein the conducting of the analytics on the meta-information associated with the newly created thread comprises determining whether at least a particular level of correlation exists between the meta-information and meta-information associated with known malicious code execution events.
 14. The transitory storage medium of claim 10, wherein the first logic unit of the code, upon execution by the one or more processors, further comprises extracting thread code associated with the newly created thread.
 15. The transitory storage medium of claim 14, wherein the second logic unit of the code, upon execution by the one or more processors, conducting of the analytics on the meta-information associated with the newly created thread by at least determining whether at least a first level of correlation exists between the meta-information and meta-information associated with known malicious code execution events or a second level of correlation exists between a representation of the thread code and a representation of shellcode.
 16. The transitory storage medium of claim 15, wherein the representation of the thread code includes at least a hash value of at least a portion of the thread code and the representation of the shellcode includes at least a hash value of at least portion of the shellcode.
 17. The transitory storage medium of claim 16, wherein the second logic unit, upon execution by the one or more processors, to provide at least the meta-information associated with the newly created thread and the thread code associated with the newly created thread to a centralized system that performs an emulation operation or other in-depth analyses on at least one of the meta-information associated with the newly created thread or the thread code associated with the newly created thread in order to analyze potential effects caused by execution of the newly created thread by the computing system.
 18. The transitory storage medium of claim 16, wherein the second logic unit, upon execution by the one or more processors, to provide at least the meta-information associated with the newly created thread and the thread code associated with the newly created thread to a centralized system to perform enrichment operations to determine additional context with respect to the newly created thread.
 19. The transitory storage medium of claim 10 and the one or more processors being deployed within a cloud service with the one or more processors corresponding to one or more virtual processors.
 20. A method for detecting malicious position independent code execution, the method comprising: receiving, via an Application Programming Interface, a notification identifying a newly created thread by a first logic unit stored within a kernel space of a memory; determining a thread type associated with the newly created thread to determine whether the newly created thread is a predetermined thread type, wherein the predetermined thread type includes a thread created in the kernel space; extracting, by the first logic unit operating within the kernel space, at least meta-information associated with the newly created thread included as part of the notification when the newly created thread is a thread type other than the predetermined thread type; receiving at least the meta-information associated with the newly created thread by a second logic unit stored within user space of the memory; conducting analytics on at least the meta-information by the second logic unit to attempt to classify the newly created thread; and issuing an alert, as generated by the second logic unit, upon classifying the newly created thread as a cyberattack associated with the malicious position independent code execution based at least on results of the analytics associated with the meta-information associated with the newly created thread.
 21. The method of claim 20, wherein the malicious position independent code execution corresponding to either a malicious remote injection in which malicious code associated with the newly created thread is inserted into a process that includes the newly created thread or a malicious local reflection in which a malicious thread is created and invoked by the process that includes the newly created thread. 